package com.zy.web.demo.duoxiancheng.demo21;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/20 16:12
 */
public class MyThread21B extends Thread{

    @Override
    public void run() {
       try {
           MyThread21 A = new MyThread21();
           A.start();
           A.join();
           System.out.println("线程B在结束的时候打印");
       }catch (InterruptedException e){
           System.out.println("线程B在catch的时候打印");
           e.printStackTrace();
       }
    }
}
